﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleLog
{
    public class ConsoleLog
    {
        public static void OpenConsole()
        {
            ConsoleNativeMethods.AllocConsole();
        }

        public static void CloseConsole()
        {
            ConsoleNativeMethods.FreeConsole();
        }

        public static void LogToConsole(string logcontent)
        {
          
                Console.WriteLine(logcontent);
        }

        public static void ClearConsole()
        {
            Console.Clear();
        }
    }
}
